package com.yanqu.road.entity.activity.jinli;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_jinli_user_data")
public class CrossJinLiUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家ID", update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "商品ID", update = true)
    private int mallId;

    @FieldTypeAnnotation(desc = "幸运签数字")
    private int luckyNum;

    @FieldTypeAnnotation(desc = "添加时间")
    private long addTime;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getMallId() {
        return mallId;
    }

    public void setMallId(int mallId) {
        if (this.mallId != mallId) {
            this.mallId = mallId;
            setOp(DataStatus.Update);
        }
    }

    public int getLuckyNum() {
        return luckyNum;
    }

    public void setLuckyNum(int luckyNum) {
        if (this.luckyNum != luckyNum) {
            this.luckyNum = luckyNum;
            setOp(DataStatus.Update);
        }
    }

    public long getAddTime() {
        return addTime;
    }

    public void setAddTime(long addTime) {
        if (this.addTime != addTime) {
            this.addTime = addTime;
            setOp(DataStatus.Update);
        }
    }
}
